<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- meta -->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- /meta -->
<title>
	<s:if test='actionType == "ADD"'>ユーザ登録</s:if>
	<s:else>ユーザ編集</s:else>
</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/headerfooter.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/ulol.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements.css">
<!-- admin -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base_admin.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements_admin.css">
<!-- /admin -->
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/library.js"></script>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie3.css">
<!--[if gte IE 5]>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_over_winie5.css">
<![endif]-->
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie5.css">
<![endif]-->

<script type="text/javascript">

</script>

</head>
<body id="dch">
<!-- === headerArea === -->
<div id="headerArea">
<a name="pageTop" id="pageTop"></a>
<jsp:include page="/common/include/header.jsp" />
</div><!-- === /headerArea === -->
<!-- === mainArea === -->
<div id="mainArea">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<td width="140" id="leftArea">
		<!-- === leftArea === -->
			<jsp:include page="../user_menu.jsp"/>
		<!-- === /leftArea === -->
		</td>
		<td width="20"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="20" height="4" border="0" alt=""></td>
		<td id="contentsArea">
		<!-- === contentsArea === -->
			<!-- headingLv01Block -->
			<div class="headingLv01Block">
				<!-- headingLv01 -->
				<s:if test='actionType == "ADD"'>
					<h1>ユーザ登録</h1>
				</s:if>
				<s:else>
					<h1>ユーザ編集</h1>
				</s:else>
				<!-- /headingLv01 -->
			</div>
			<!-- /headingLv01Block -->
			<!-- columnB01 -->
			<div class="columnB01">
				<s:fielderror />
				<s:actionerror/>
				<s:actionmessage/>
			</div>
			<!-- /columnB01 -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>ユーザ情報<br></em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<form action="<%= request.getContextPath() %>/users/user-confirm" method="post" id="addForm">
				<s:hidden name="actionType"/>
				<s:hidden name="userView.createUser"/>
				<s:hidden name="userView.createDate"/>
				<s:hidden name="userView.updateUser"/>
				<s:hidden name="userView.updateDate"/>
			<!-- tableBlock -->
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="fServiceName">ユーザID</label></th>
						<!-- エラー --><th width="11" class="error"></th>
						<!-- 内容 --><td>
							<s:if test='actionType=="ADD"'>
								<s:textfield name = "userView.id" size="35" maxlength="30" />
							</s:if>
							<s:else>
								<s:property value="userView.id"/>
								<s:hidden name="userView.id"/>
							</s:else>
						</td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="fDescription">ユーザ名</label></th>
						<!-- エラー --><th width="11" class="error"></th>
						<!-- 内容 --><td>
							<s:textfield name = "userView.name" size="35" maxlength="30" />
						</td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="fServiceName">パスワード</label></th>
						<!-- エラー --><th width="11" class="error"></th>
						<!-- 内容 --><td>
							<s:textfield name = "userView.password" size="35" maxlength="30" />
						</td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="flebel">フロント権限</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td> <s:radio name="userView.frontLevel" list="#{'1':'ユーザ1','2':'ユーザ2','3':'ユーザ3'}"  /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="klebel">管理権限</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td> <s:radio name="userView.manageLevel" list="#{'1':'管理者','2':'スタッフ','3':'なし'}"  /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createUser">登録者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="userView.createUser"/></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createDate">登録日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="userView.createDate"/></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyUser">最終更新者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="userView.updateUser"/></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyDate">最終更新日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="userView.updateDate"/></td>
					</tr>
				</table>
				</div>
				<!-- /tableA01 -->
			</div>
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>ユーザグループ情報<br></em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<!-- /tableBlock -->
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" width="558">
				<s:iterator value="groupInfoList" status="stats">
					<tr>
						<th class="lv01B" width="170"><label for="fServiceName"><s:property value="name"/></label></th>
						<td>
							<select name="userGroupList[${stats.index}]">
								<s:if test='%{userGroupList[#stats.index]=="1"}'>
									<option value="0" >-</option>
									<option value="<s:property value= "id"/>" selected="selected">所属</option>
								</s:if>
								<s:else>
									<option value="0" selected="selected">-</option>
									<option value="<s:property value= "id"/>" >所属</option>
								</s:else>
							</select>
						</td>
					</tr>
				</s:iterator>
				</table>
				</div>
				<!-- /tableA01 -->
			</div>
			<!-- pageNaviC01 -->
			<div class="pageNaviC01">
			<table border="0" cellspacing="0" cellpadding="10" width="558">
				<tr>
					<td width="298" class="left"><p><input type="button" value="キャンセル" style="width:100px" onclick="location.href='<%= request.getContextPath() %>/output/modoru'"></p></td>
					<td width="130" class="left">&nbsp;</td>
					<td width="130" class="right"><p><input type="submit" value="確認する" style="width:130px"/></p></td>
				</tr>
			</table>
			</div>
			<!-- /pageNaviC01 -->
			</form>
		<!-- === /contentsArea === -->
		</td>
		<td width="16"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="16" height="4" border="0" alt=""></td>
	</tr>
</table>
</div><!-- === /mainArea === -->
<!-- === footerArea === -->
<div id="footerArea">
<jsp:include page="/common/include/footer.jsp" />
<!--#include virtual="<%= request.getContextPath() %>/common/include/footer.html" -->
</div><!-- === /footerArea === -->
</body>
</html>
<!-- System Architect is COOBA Corp
	Copyright 2010 COOBA Corp All rights reserved -->